package com.mit.facade;

import com.mit.common.RequestContext;
import com.mit.common.ResultContext;
import com.mit.common.exception.BaseException;

public interface IPurchaseFacade {

	ResultContext retrievePagedSuppliers(RequestContext rqs);
	ResultContext retrieveSupplierCount(RequestContext rqs);
	ResultContext saveSupplier(RequestContext rqs) throws BaseException;
	/**
	 * 取回只有ID, NAME的简单信息的供应商资料，作为dropdownlist数据源
	 * @param rqs 在NAME中搜索的关键字，可以为NULL
	 * @return 按照成交次数，名称排序的列表。成交多的拍前面
	 */
	ResultContext retrieveSuppliersBasicInfo(RequestContext rqs);
	
	/**
	 * 取回指定供应商的全部原料
	 * @param rqs
	 * @return
	 */
	ResultContext retrieveMaterials(RequestContext rqs);
	ResultContext saveMaterial(RequestContext rqs) throws BaseException;
	
	/**
	 * 取回制定原料的全部色卡
	 * @param rqs
	 * @return
	 */
	ResultContext retrieveColorStyles(RequestContext rqs);
	ResultContext saveColorStyle(RequestContext rqs) throws BaseException;
	
	ResultContext retrievePagedInquiryTasks(RequestContext rqs);
	ResultContext retrieveInquiryTaskCount(RequestContext rqs);
	ResultContext retrieveInquiryItems(RequestContext rqs);
	ResultContext saveInquiryItem(RequestContext rqs) throws BaseException;
	ResultContext saveInquiryTask(RequestContext rqs) throws BaseException;
}
